package cn.gary.oaserver.service;

import cn.gary.oaserver.entity.TEmployee;
import cn.gary.oaserver.params.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author gary
 * @since 2024-03-15
 */
public interface ITEmployeeService extends IService<TEmployee> {

    IPage<TEmployee> getEmpByQuery(Page<TEmployee> pageInfo, String empName, Integer politicsId, Integer deptId, String beginTime,String endTime, String sort);


    // 获取新增员工基本资料时所需要的工号，原理是取workid列的最大值再 + 1
    Result maxWorkID();

    /**
     * 修改员工基本资料
     * @return
     */
    Result updateEmp(TEmployee employee);

    /**
     * 修改员工基本资料
     * @return
     */
    Result insertEmp(TEmployee employee);

    Result delEmp(Integer id);
}
